package com.gz.spring.service;

import com.gz.spring.dao.MemberDaoImpl;

public class MemberServiceImpl {
    private MemberDaoImpl memberDao;
//    public MemberServiceImpl() {
//        System.out.println("MemberServiceImpl构造器被调用");
//    }

    public void setMemberDao(MemberDaoImpl memberDao) {
//        System.out.println("setMemberDao被调用");
        this.memberDao = memberDao;
    }

    public MemberDaoImpl getMemberDao() {
        return memberDao;
    }
    public void add(){
        memberDao.add();
    }
}
